package demo1;

public class CatchDemo1 {
//    public static void main(String[] args) {
//        try {
//            int i=2/0;
//        }catch (Exception e){
//            System.out.println("Exception");
//        } catch (ArithmeticException e) {
//            System.out.println("ArithmeticException");
//        }
//
//    }
    public static void main(String[] args) {
        try {
            int i=2/0;
        }catch (ArithmeticException e) {
            System.out.println("ArithmeticException");
        } catch (Exception e){
            System.out.println("Exception");
        }

    }
}
